/*
 * This file is part of Avenge <https://adblockplus.org/>,
 * Copyright (C) 2006-present eyeo GmbH
 *
 * Avenge is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * Avenge is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Avenge.  If not, see <http://www.gnu.org/licenses/>.
 */

io-highlighter,
io-highlighter *,
io-highlighter *::before,
io-highlighter *::after
{
  box-sizing: border-box;
}

io-highlighter
{
  display: block;
  position: relative;
  border: 1px solid #979797;
}

io-highlighter .split
{
  display: flex;
  height: 100%;
}

io-highlighter .options
{
  width: 95px;
  padding: 12px;
  border-right: 1px solid #979797;
  color: #4A4A4A;
  background-color: #f1f1f1;
}

io-highlighter canvas
{
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
  flex-grow: 1;
  touch-action: none;
}

io-highlighter[drawing] canvas
{
  pointer-events: all;
}

io-highlighter .options .highlight
{
  background-image: url(icons/highlight.svg?off#off);
}

io-highlighter[drawing="highlight"] .options .highlight
{
  background-image: url(icons/highlight.svg?on#on);
}

io-highlighter .options .hide
{
  background-image: url(icons/hide.svg?off#off);
}

io-highlighter[drawing="hide"] .options .hide
{
  background-image: url(icons/hide.svg?on#on);
}

io-highlighter .options .highlight,
io-highlighter .options .hide
{
  width: 70px;
  min-height: 70px;
  margin-bottom: 12px;
  padding: 0;
  padding-top: 40px;
  border-width: 0;
  border-radius: 12px;
  outline: none;
  color: inherit;
  background-repeat: no-repeat;
  background-position: center 12px;
  font-size: 0.7rem;
  word-break: break-all;
}

io-highlighter[drawing="highlight"] .options .highlight,
io-highlighter[drawing="hide"] .options .hide
{
  color: #FFF;
  background-color: #9b9b9b;
}

io-highlighter .closer
{
  display: block;
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 24px;
  background-color: #4a4a4a;
  cursor: pointer;
  transform: translateX(-12px) translateY(-12px);
}

io-highlighter .closer img
{
  width: 12px;
  margin: 6px;
}
